package cn.knightzz.service;

import cn.knightzz.entity.SysMember;
import cn.knightzz.vo.ExamineCountVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 党员表 服务类
 * </p>
 *
 * @author knightzz
 * @since 2021-05-14
 */
public interface SysMemberService extends IService<SysMember> {

    /**
     * 添加党员信息
     *
     * @param member
     * @return
     */
    Boolean addMember(SysMember member);

    /**
     * 更新党员信息
     *
     * @param member
     * @return
     */
    Boolean updateMember(SysMember member);

    /**
     * 删除党员信息
     *
     * @param id
     * @return
     */
    Boolean deleteMember(Long id);


    /**
     * 分页查询数据
     *
     * @param pageNum
     * @param pageSize
     * @param query
     * @return
     */
    IPage<SysMember> selectMemberPage(Long pageNum, Long pageSize, String query);


    /**
     * 根据党员姓名模糊查询
     *
     * @return
     */
    List<SysMember> getMemberListByName(String name);


}
